package com.gsm.projects.jobDw;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class TestJSON {

    public static void main(String[] args) {

        String jsonStr = "{\"before\":null,\"after\":{\"record_id\":100002,\"graduate_id\":1245115,\"employer_id\":71,\"send_offer_time\":1708788961000,\"onboarding_date\":19780,\"position\":\"Administrator\",\"salary\":29726.37,\"employment_type\":\"全职\",\"created_at\":1733303502000,\"updated_at\":1733303502000},\"source\":{\"version\":\"1.6.4.Final\",\"connector\":\"mysql\",\"name\":\"mysql_binlog_source\",\"ts_ms\":1733274702000,\"snapshot\":\"false\",\"db\":\"db_job_realtime_statistics\",\"sequence\":null,\"table\":\"employmentrecords\",\"server_id\":1,\"gtid\":null,\"file\":\"mysql-bin.000045\",\"pos\":220471913,\"row\":0,\"thread\":null,\"query\":null},\"op\":\"c\",\"ts_ms\":1733274702129,\"transaction\":null}";

        JSONObject jsonObj = JSON.parseObject(jsonStr);

        System.out.println(jsonObj);
    }
}
